package com.lyx.bookmanager.mapper;

import com.lyx.bookmanager.pojo.GxUserBookCollect;
import com.lyx.bookmanager.pojo.GxUserBookCollectExample;
import java.util.List;

import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

@Repository
@Mapper
public interface GxUserBookCollectMapper {
    long countByExample(GxUserBookCollectExample example);

    int deleteByExample(GxUserBookCollectExample example);

    int deleteByPrimaryKey(Integer id);

    int insert(GxUserBookCollect record);

    int insertSelective(GxUserBookCollect record);

    List<GxUserBookCollect> selectByExample(GxUserBookCollectExample example);

    GxUserBookCollect selectByPrimaryKey(Integer id);

    int updateByExampleSelective(@Param("record") GxUserBookCollect record, @Param("example") GxUserBookCollectExample example);

    int updateByExample(@Param("record") GxUserBookCollect record, @Param("example") GxUserBookCollectExample example);

    int updateByPrimaryKeySelective(GxUserBookCollect record);

    int updateByPrimaryKey(GxUserBookCollect record);

    List<GxUserBookCollect> getGxUserBookCollectList(@Param("bookId") long bookId
            , @Param("username") String username);
}